
class_name ResultPlan
extends ColorRect




@onready var camp = $Camp

signal end_siganl




func _ready() -> void:
	set_process_input(false)




func start() -> void:
	show()
	set_process_input(true)




func end() -> void:
	hide()
	set_process_input(false)




func _input(_event: InputEvent) -> void:
	get_viewport().set_input_as_handled()
	
	if _event.is_action_pressed("action_confirm"):
		end()
		emit_signal("end_siganl")
